package com.teamall.web.base.db.dao.mapper;

import com.teamall.web.base.db.arg.VillageInfoArg;
import com.teamall.web.base.db.po.VillageInfoPO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface IVillageInfoMapper {
    
    List<Integer> countByArg(VillageInfoArg arg);

    List<VillageInfoPO> selectByArg(VillageInfoArg arg);

    VillageInfoPO selectByPrimaryKey(Integer id);

    List<VillageInfoPO> selectByArgAndPage(VillageInfoArg arg, RowBounds rowBound);

    int insert(VillageInfoPO record);

    int insertSelective(VillageInfoPO record);

    int insertBatch(@Param("list") List<VillageInfoPO> records);

    int updateByArgSelective(@Param("record") VillageInfoPO record,
            @Param("arg") VillageInfoArg arg);

    int updateByArg(@Param("record") VillageInfoPO record,
            @Param("arg") VillageInfoArg arg);

    int updateByPrimaryKeySelective(VillageInfoPO record);

    int updateByPrimaryKey(VillageInfoPO record);
    
    int deleteByArg(VillageInfoArg arg);
    
    int deleteByPrimaryKey(Integer id);
    
}